// 导入 来定义验证规则的包
const { not } = require("joi")
const joi = require("joi")

const name = joi.string().required()
const alias = joi.string().required().alphanum()
    // 验证文章分类添加 
exports.addCates_schema = {
        body: {
            name,
            alias
        }
    }
    // 验证文章删除id
const id = joi.number().integer().min(1).required()
exports.deleteCates_schema = {
    params: {
        id,
    }
}